package cn.sfrog.project.biz.applet.service;

import cn.sfrog.common.core.domain.ApiAjaxResult;
import cn.sfrog.project.biz.applet.entity.AccompanyVisitorEntity;
import cn.sfrog.project.biz.applet.entity.BizPrizeRaffleEntity;
import cn.sfrog.project.biz.applet.entity.BizUserRaffleEntity;
import cn.sfrog.project.biz.applet.entity.VO.AccompanyVisitorVo;
import cn.sfrog.project.biz.applet.entity.VO.BizUserRaffleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author chen
 * @Date 2023-11-27 10:49
 * @title AppletUserService
 * @description
 **/
public interface AppletUserService {
   ApiAjaxResult loginAndRegister(String code, String phoneNumber,Long userId);
   ApiAjaxResult userRaffle();
   ApiAjaxResult<BizPrizeRaffleEntity> bizPrizeRaffle();

   ApiAjaxResult insertUserRaffle(BizUserRaffleEntity bizUserRaffleEntity);
   public ApiAjaxResult AuthorizedLogin(String phoneNumber,String loginCode);

   List<AccompanyVisitorEntity> visitorAccompany(String id);
   ApiAjaxResult insertVisitor(AccompanyVisitorVo accompanyVisitorVo);

   ApiAjaxResult changeVisitorAccompany(AccompanyVisitorVo accompanyVisitorVo);
   ApiAjaxResult deleteVisitorAccompany(String id);

   ApiAjaxResult getAccompanyList();

   ApiAjaxResult updateOpenIdByPhoneNumber(String loginCode,String phoneNumber);
}
